<?php
/**
 * Created by PhpStorm.
 * User: 毛文科
 * Date: 2018\10\28 0028
 * Time: 10:03
 */
namespace app\admin\model;
use think\Db;

class User
{
    /**获取用户模型
     * @return $this
     */
    static public function get(){
        return Db::view('user',true)
            ->view('vip_role','role_name','vip_role.id=user.role_id','left')
            ->view('occupation','occupation_name','occupation.id=user.occupation_id','left');
    }
}